a = ['1','2','3','4']
 
b=[]
for i in a:
    print(i)
    for j in [x for x  in a if x!=i]:
        print(j)
        for m in [x for x in a if x!=i and x!=j]:
            print(m)
            b.append(int(i+j+m))
print(b)
print('互不相同且无重复数字的三位数总计 %s 个'%len(b))
